import { createRouter, createWebHistory } from 'vue-router';

const routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        component: () => import('@/views/Home')
    },
    {
        path: '/category',
        component: () => import('@/views/Category')
    }

]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router